package factory;

public class CarStore {
	CarFactory carFactory;

	public CarStore(CarFactory carFactory) {
		this.carFactory = carFactory;
	}

	public void showCar(String model) {
		Car newCar = carFactory.getCar(model);
		newCar.run();
		newCar.turnOn();
		newCar.turnOff();
	}
}
